package com.ysqcould.common.utils.uuid;

import cn.hutool.core.util.ObjectUtil;

/**
 * 重写array转string 去除[]
 * @author jcd
 */
public class ArrayUtil {
     public  static String getStr(int[]data){
         if (ObjectUtil.isEmpty(data)){
             return "";
         }
         int maxLength=data.length-1;
         StringBuffer bf=new StringBuffer();
         for (int i = 0; ; i++) {
             bf.append(data[i]);
             if (maxLength==i){
                 return bf.toString();
             }
             bf.append(",");
         }
     }
}
